package com.dao;

import com.entity.Teacher;
import com.page.PageInfo;

import java.util.List;

public interface TeacherDao {
    public List<Teacher> getAll() throws Exception;
    public int addTeacher(Teacher teacher) throws Exception;
    List<Teacher> getTeachersByPage(PageInfo pageInfo,String cacheId) throws Exception;
    List<Teacher> getTeachersByPage(PageInfo pageInfo) throws Exception;
    public List<Teacher> searchTeacherByName(String name,PageInfo pageInfo) throws Exception;
    public Teacher selectTeacherWithScsAndCourse(String sno)throws Exception;
    public Teacher selectTeacherBySno(String sno);
    public int updateTeacherByCno(Teacher teacher);


    public int  getItemCount(String cacheId);

    public Teacher loginTeacherByTname(String tname) throws Exception;
}
